package com.hassean.we.admin.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yajun
 * @since 2019-03-29
 */
@TableName("tb_call")
public class TbCall extends Model<TbCall> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "call_id", type = IdType.AUTO)
    private Long callId;
    @TableField("calling_terminal_id")
    private Long callingTerminalId;
    @TableField("passivity_terminal_id")
    private Long passivityTerminalId;
    private String duration;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("add_time")
    private Date addTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("update_time")
    private Date updateTime;
    private Integer state;
    private String temp;
    private Long status;
    private String remark;
    @TableField("advance_text")
    private String advanceText;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("advance_date")
    private Date advanceDate;
    @TableField("del_flag")
    private String delFlag;
    @TableField("calling_time")
    private String callingTime;
    @TableField("passivity_time")
    private String passivityTime;


    public Long getCallId() {
        return callId;
    }

    public void setCallId(Long callId) {
        this.callId = callId;
    }

    public Long getCallingTerminalId() {
        return callingTerminalId;
    }

    public void setCallingTerminalId(Long callingTerminalId) {
        this.callingTerminalId = callingTerminalId;
    }

    public Long getPassivityTerminalId() {
        return passivityTerminalId;
    }

    public void setPassivityTerminalId(Long passivityTerminalId) {
        this.passivityTerminalId = passivityTerminalId;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getTemp() {
        return temp;
    }

    public void setTemp(String temp) {
        this.temp = temp;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAdvanceText() {
        return advanceText;
    }

    public void setAdvanceText(String advanceText) {
        this.advanceText = advanceText;
    }

    public Date getAdvanceDate() {
        return advanceDate;
    }

    public void setAdvanceDate(Date advanceDate) {
        this.advanceDate = advanceDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCallingTime() {
        return callingTime;
    }

    public void setCallingTime(String callingTime) {
        this.callingTime = callingTime;
    }

    public String getPassivityTime() {
        return passivityTime;
    }

    public void setPassivityTime(String passivityTime) {
        this.passivityTime = passivityTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.callId;
    }

    @Override
    public String toString() {
        return "TbCall{" +
        ", callId=" + callId +
        ", callingTerminalId=" + callingTerminalId +
        ", passivityTerminalId=" + passivityTerminalId +
        ", duration=" + duration +
        ", addTime=" + addTime +
        ", updateTime=" + updateTime +
        ", state=" + state +
        ", temp=" + temp +
        ", status=" + status +
        ", remark=" + remark +
        ", advanceText=" + advanceText +
        ", advanceDate=" + advanceDate +
        ", delFlag=" + delFlag +
        ", callingTime=" + callingTime +
        ", passivityTime=" + passivityTime +
        "}";
    }
}
